<!--热度功能的实现-->
<?php
$conn=new mysqli("localhost","root","123456","htmlkeshe");
$conn->query("set names utf8");
$sql="select * from news where newsId=".$_GET['newsId'].";";
$result=$conn->query($sql);
$info = $result->fetch_assoc();
$heat = $info['heat']+1;
$sql = "update news set heat =".$heat." where newsId=".$_GET['newsId'].";";
//echo $sql;
$conn->query($sql);

$conn->close();
//先加热度然后再得到评论区
header("location:NewsPLDo.php?newsId=".$_GET['newsId']."&page=".$_GET['page']);
?>